home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
15
/
3
/
DISK1537.ZIP
/
DUALS.DOC
< prev
next >
Wrap
Text File
|
1988-12-07
|
3KB
|
64 lines
DUAL SCREEN PROGRAMS
====================
The programs SWAP.COM, SCREEN.COM and DUALS.COM are intended for
use with a dual screen system. That is a system that has BOTH
the mono (or mono-graphics) card and the color graphics adapter
(CGA) card installed. You may wonder why one should do this?
Well ... for someone like myself, who's constantly developing
programs for the IBM-PC, it allows me to test programs written
for the different video interfaces simply by swapping screens
using the SWAP command. Some programs have even been written for
dual screen use. One, which is useful to me, is Microsoft's CODE
VIEW. I can now debug a graphics program, with it's display
being on the color monitor whilst CODE VIEW displays all the
program lines and register contents etc. on the monochrome
screen. Other programs, such as AUTOCAD, can do the same thing.
Graphics can be displayed on the color screen whilst text is
entered on the mono screen.
One of the problems encounted with the standard IBM-PC system is
that it does not initialize both screens when powering-up. The
SCREEN program can be inserted in your AUTOEXEC.BAT file to
provide this initialization and blanking of screens (including
turning off the blinking cursor) automatically.
The SWAP command allows you to swap from one screen to the other.
This command automatically determines what screen is being used
and swaps to the other. The originating screen is cleared and
its cursor is blanked, whilst the destination screen is cleared
and its cursor turned on. i.e. You always know which screen
you're on by the blinking cursor!
The DUALS program was written to allow the two screens to be used
from a GWBASIC or BASICA program as no programming langauage
(that I'm aware of) supports dual screen operation. DUALS is a
memory resident program that should only be executed ONCE. After
it has been executed, invoke GWBASIC and you will find that you
can simply swap from one screen to the other by selecting either
the text mode (0), black & white (0) for the the mono screen and
text mode (0), color enabled (1) for the color screen. e.g.
execute SCREEN 0,0 for mono and SCREEN 0,1 for color. By-the-way
selecting any graphics mode (1 or 2) switches automatically to
the color graphics screen. The destination screen is blanked.
This allows information to be written to one screen then you can
change to the other and write more information (allowing text on
one screen and graphics on the other for example).
One important feature of DUALS is that it has been designed to
allow you to 'fool' GWBASIC into believing that it is in the
graphics mode whilst text i/o is being conducted on the mono
screen. Simply invoke the graphics mode required (i.e. 1 or 2)
then execute SHELL "SWAP" (make sure command.com and swap.com are
available). The graphics screen will be blanked and then the
cursor will re-appear on the monoscreen. You can now enter
graphics commands directly and watch what they do on the graphics
screen (without annoying text appearing). It's great from
demonstrating and experimenting with the graphics commands in
BASIC.
(C) COPYRIGHT 1988,PROCON SOFTWARE,BOX 43,ESSENDON 3040,AUSTRALIA